//
//  AppDelegate+Show.swift
//  GSD-SwiftAPP
//
//  Created by Steve on 2019/10/17.
//  Copyright © 2019 faker. All rights reserved.
//

import Foundation

extension AppDelegate {
    
    enum Root {
        case launch
        case login
        case guide
        case main
    }
    
    func show(_ root: Root) {
        
        let controller: UIViewController
        switch root {
            //        case .launch:
            //            controller = LaunchViewController.instance()
//        case .login:
//            controller = DSLoginVC.instance()
            //        case .guide:
            //            controller = TutorialViewController.instance()
        case .main:
            controller = DSMainTabBarContoller()
        default:
            controller = DSMainTabBarContoller()
        }
        
        window?.rootViewController = NavigationController(controller)
    }
        
}

